///<reference path="./Sequence.ts"/>

import { ArrayExt } from "../core/ArrayExt";
import { Sequence } from "./Sequence";

    /**
     * 与sequence相同，只是它在开始时对子级进行无序处理
     */
    export class RandomSequence<T> extends Sequence<T>{
        public onStart(){
            ArrayExt.shuffle((this as any)._children);
        }
    }
